#include<iostream>
#include<cstring>


using namespace std;

bool ok(char s[]) {
    int n = strlen(s);
    int i = 0, j = n - 1;
    while (i < j) {
        if (s[i] != s[j])return false;
        i++;
        j--;
    }
    return true;
}

int main() {
    char s[300];
    while (cin >> s) {
        if (ok(s)) {
            cout << "Y" << endl;
        } else {
            cout << "N" << endl;
        }

    }


    return 0;
}